﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Metro.Kashikoi.ServiceContract.Location;
using Metro.Kashikoi.ServiceContract.Storage;
using Metro.Kashikoi.ServiceContract.Item;

namespace Metro.Kashikoi.Web.ViewModels
{
    public class InventoryListItemViewModel
    {
        public InventoryListItemViewModel(BinInventory inv)
        {
            Id = inv.Id;
            Name = inv.Name;
            Quantity = inv.Quantity;
            SplitQuantity = inv.SplitQuantity;
            Unit = inv.Unit;
            SSID = inv.SSID;
            StockStatus = inv.StockStatus;
        }
        public string Name { get; set; }
        public int Id { get; set; }
        public StockArea StockArea { get; set; }
        public Category Category { get; set; }
        public Item Item { get; set; }
        public int Quantity { get; set; }
        public int SplitQuantity { get; set; }
        public string Unit { get; set; }
        public string SSID { get; set; }
        public StockStatus StockStatus { get; set; }
    }
}